package com.wanhu.player
{
	import flash.media.Camera;
	import flash.media.Microphone;
	import flash.net.NetStream;

	public class Supervisor
	{
		public static var nearID:String;
		private static var conStatus1:int;
		private static var callStatus1:int;
		public static var otherId:String;
		public static var userType:int;
		public static var region_id:String;

		public static var cam:Camera;
		public static var mic:Microphone;
		public static var broadcast:String;
		
		public static var js:JSCall = new JSCall();
		public static var player:CanvasWrapper = new CanvasWrapper();
		
		public static var waitingCount:int = 0;
		
		public static var sendStream:NetStream;
		public static var outgoingStream:NetStream;
		public static var boradcastStatus:int = 0;

		public static var sendVideo:Boolean = true;
		
		public static function get conStatus():int {
			return conStatus1;
		}
		
		public static function set conStatus(status:int):void {
			conStatus1 = status;
		}
		
		public static function get callStatus():int {
			return callStatus1;
		}
		
		public static function set callStatus(status:int):void {
			Supervisor.js.call("btnProc", status == 4);
			callStatus1 = status;
		}
	}
}
